@php
    $rand = rand(1,999999);
@endphp
<div id="{{$rand}}">
    @foreach ($src as $v)

    <img src="{{$v}}" class="img-border" id="{{$v}}" width="{{$width}}" height="{{$height}}" alt="">
    @endforeach
</div>
<script type="text/javascript">
    var image = new Viewer(document.getElementById('{{$rand}}'),{
        url: 'data-original'
    });
</script>
